import Layout from '@/views/layout/Layout'

const teacherRouter = {
  path: '/teacher',
  component: Layout,
  redirect: '/teacher/index',
  alwaysShow: false, // will always show the root menu
  meta: {
    title: '教师管理',
    icon: 'user',
    roles: ['admin'] // you can set roles in root nav
  },
  children: [{
    path: 'page',
    component: () => import('@/views/teacher/management'),
    name: 'TeacherManagement',
    meta: {
      title: '教师管理',
      roles: ['admin'] // or you can only set roles in sub nav
    }
  }]
}
export default teacherRouter
